home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-06-05 | 1.7 KB | 44 lines | [TEXT/MPS ] |
- BreakBefore
-
- Charlie Reiman -- April 17, 1994
-
- This qualifies as one of my sneakiest hacks ever. BreakBefore is a system
- extension for extension writers. It allows you to break into macsbug on
- the very first instruction of the INIT code of ANY extension you choose.
-
- To use:
-
- 1) Pick the extension or control panel you wish to debug.
- 2) Copy BreakBefore into the same folder.
- 3) Paste the name of the debugging target onto the copy of BreakBefore,
- and delete the last letter of the new name. (For example, if you want to
- break on entry to "Scrolling 7.0.1", put BreakBefore into Control Panels,
- and name the copy "Scorlling 7.0.") If you view the folder by name, the
- copy of BreakBefore should appear immediately preceeding the target
- extension.
- 4) Reboot. Macsbug will flicker once, then break for good on the first
- instruction of the target extension.
- 5) You can just hit "G" and the target should load normally, if its not
- doing something strange.
- 6) To permanently remove BreakBefore, throw out the installed copy.
-
- This is a fairly safe hack. I've been using it on and off for a year. I
- strongly suggest you open up the source code and decipher the program.
- You shouldn't use it if you don't understand it.
-
- Be warned that this will lose badly if apple changes the way it calls INIT
- code, apple changes the mechanism I use to communicate to Macsbug, or if
- everything suddenly goes native overnight. Also, if the target has no init
- code, BreakBefore will break on the first instruction of the next thing
- that does have init code. Running BreakBefore as the last item in the boot
- process is a very bad idea.
-
- BreakBefore and the enclosed source code are public domain.
-
- Break a leg,
-
- Charlie Reiman
- creiman@netcom.com
-
-
-